{extend name="layout/layout" /}

{block name="content"}
<div class="row js-check-wrap">
    <div class="col-lg-12">
        <div class="portlet light">
            <div class="box-header">
                <div class="row">
                    {include file="common:search" /}
                    <div class="col-md-2">
                        <div class="pull-right">
                            <button data-url="{:url('admin/'.strtolower($model).'/add')}" class="btn blue btn-circle add-btn"><i class="fa fa-plus"></i> 新增数据</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="portlet-body">
                <div class="row">
                    <div class="col-md-3 col-sm-3 col-xs-3">
                        <ul class="nav nav-tabs tabs-left">
                            <li class="active">
                                <a href="#tab_1" data-toggle="tab" class="data-tab" data-type="crop"> 作物品种 </a>
                            </li>
                            <li>
                                <a href="#tab_2" data-toggle="tab" class="data-tab" data-type="toutiao"> 资讯分类 </a>
                            </li>
                            <li>
                                <a href="#tab_3" data-toggle="tab" class="data-tab" data-type="policy"> 政策分类 </a>
                            </li>
                            <li>
                                <a href="#tab_4" data-toggle="tab" class="data-tab" data-type="work"> 办事分类 </a>
                            </li>
                            <li>
                                <a href="#tab_5" data-toggle="tab" class="data-tab" data-type="poverty"> 扶贫类型 </a>
                            </li>
                            <li>
                                <a href="#tab_6" data-toggle="tab" class="data-tab" data-type="farmresource"> 农资分类 </a>
                            </li>
                            <li>
                                <a href="#tab_7" data-toggle="tab" class="data-tab" data-type="farmdevice"> 农机分类 </a>
                            </li>
                            <li>
                                <a href="#tab_8" data-toggle="tab" class="data-tab" data-type="farmservice"> 农服分类 </a>
                            </li>
                            <li>
                                <a href="#tab_9" data-toggle="tab" class="data-tab" data-type="facilitie"> 设施分类 </a>
                            </li>
                            <li>
                                <a href="#tab_10" data-toggle="tab" class="data-tab" data-type="managecate"> 经营类目 </a>
                            </li>
                            <li>
                                <a href="#tab_11" data-toggle="tab" class="data-tab" data-type="baseland"> 基地类型 </a>
                            </li>
                            <li>
                                <a href="#tab_12" data-toggle="tab" class="data-tab" data-type="massif"> 地块类型 </a>
                            </li>
                            <li>
                                <a href="#tab_13" data-toggle="tab" class="data-tab" data-type="prolevel"> 产品等级 </a>
                            </li>
                            <li>
                                <a href="#tab_14" data-toggle="tab" class="data-tab" data-type="method"> 处理方式 </a>
                            </li>
                            <li>
                                <a href="#tab_15" data-toggle="tab" class="data-tab" data-type="job"> 职务分类 </a>
                            </li>
                            <li>
                                <a href="#tab_16" data-toggle="tab" class="data-tab" data-type="dynamics"> 互动话题 </a>
                            </li>
                            <li>
                                <a href="#tab_17" data-toggle="tab" class="data-tab" data-type="classroom"> 课堂分类 </a>
                            </li>
                        </ul>
                    </div>
                    <div class="col-md-9 col-sm-9 col-xs-9">
                        <div class="tab-content">
                            <div class="tab-pane active" id="tab_1">
                                <table id="crop-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>封面图</th>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_2">
                                <table id="toutiao-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_3">
                                <table id="policy-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_4">
                                <table id="work-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_5">
                                <table id="poverty-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_6">
                                <table id="farmresource-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_7">
                                <table id="farmdevice-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_8">
                                <table id="farmservice-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_9">
                                <table id="facilitie-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_10">
                                <table id="managecate-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_11">
                                <table id="baseland-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_12">
                                <table id="massif-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_13">
                                <table id="prolevel-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_14">
                                <table id="method-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_15">
                                <table id="job-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_16">
                                <table id="dynamics-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="tab-pane" id="tab_17">
                                <table id="classroom-table" class="table table-bordered table-hover dataTable">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="view-modal" data-backdrop="static" data-keyboard="false" >
    <div class="modal-dialog" style="width:800px; height: 520px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">x</button>
                <h4 class="modal-title">基础数据</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12">
                        <!-- BEGIN SAMPLE FORM PORTLET-->
                        <div class="portlet light">
                            <div class="portlet-body">
                                <form id="ajax-form" class="form-horizontal" name="ajaxForm">
                                    <div class="form-body">
                                        <div class="row">
                                            <div class="col-md-9">
                                                <div class="form-group">
                                                    <label class="control-label col-md-3">
                                                        名称
                                                        <span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-9">
                                                        <input type="text" class="form-control" id="name" name="name" data-name="" value="">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <input type="hidden" class="id" name="id" value="">
                                        <input type="hidden" class="type" name="type" value="">
                                    </div>
                                </form>
                            </div>
                        </div>
                        <!-- END SAMPLE FORM PORTLET-->
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn blue save-btn"> 确定 </button>
                <button type="button" class="btn default" data-dismiss="modal"> 关闭 </button>
            </div>
        </div>
    </div>
</div>

<input type="hidden" class="token_url" value="{:url('admin/Image/token')}">
<input type="hidden" class="record_url" value="{:url('admin/Image/record')}">
<input type="hidden" class="delimage_url" value="{:url('admin/Image/delete')}">

<input type="hidden" class="datalist_url" value="{:url('admin/'.strtolower($model).'/index')}">
<input type="hidden" class="edit_url" value="{:url('admin/'.strtolower($model).'/edit')}">
<input type="hidden" class="delete_url" value="{:url('admin/'.strtolower($model).'/delete')}">

<input type="hidden" class="save_url" value="{:url('admin/'.strtolower($model).'/savepost')}">
<input type="hidden" class="checkName_url" value="{:url('admin/'.strtolower($model).'/checkName')}">
{/block}

{block name="pagescript"}
<script src="__STATIC__/admin/js/qiniu/plupload.full.min.js" type="text/javascript"></script>
<script src="__STATIC__/admin/js/qiniu/qiniu.js" type="text/javascript"></script>
<script src="__STATIC__/admin/js/qiniu/custom.js" type="text/javascript"></script>
<script src="__STATIC__/admin/js/qiniu/qiniuConfig.js" type="text/javascript"></script>

<script src="__STATIC__/admin/pages/js/basicdata.js" type="text/javascript"></script>
{/block}